package gemini.basic.manager;

import gemini.basic.model.Address;
import gemini.basic.model.User;

import org.springframework.transaction.annotation.Transactional;

@Transactional(rollbackFor = Throwable.class)
public interface UserManager {

	public User getUserByName(String name);

	public User save(User user);
	
	public boolean savePassword(String username,String password, String newPassword);
	
	public boolean saveEmail(String username,String password, String newEmail);
	
	public boolean savePhone(String username,String password, String newPhone);
	
	public boolean saveAddress(String username,String password, Address newAddress);
}
